package cn.breeze.org.mapper;

import cn.breeze.org.domain.Employee;
import cn.breeze.org.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper {

    // 查询所有
    List<Employee> loadAll();

    // 根据Id查询
    Employee loadById(Long id);

    // 根据Id删除
    void remove(Long id);

    // 新增
    void save(Employee employee);

    // 根据Id修改
    void update(Employee employee);

    // 分页+高级查询
    List<Employee> queryData(EmployeeQuery employeeQuery);

    // 查询总条数
    Integer queryCount(EmployeeQuery employeeQuery);

}

